package com.tscnd.core;



/**
 * Constant values used throughout the application.
 * 
 * <p>
 * <a href="Constants.java.html"><i>View Source</i></a>
 * </p>
 * 
 * @author
 */
public class Constants {
	// ~ Static fields/initializers
	// =============================================
	/**
	 * int型数字0
	 */
	public static final int FIGURE_ZERO = 0;
	
	/** double型运算时的误差范围为0.01 */
	public static final double ERRORRANGE = 0.01;// double型运算时的误差范围为0.01

	/** The name of the ResourceBundle used in this application */
	public static final String BUNDLE_KEY = "messages";

	/** The encryption algorithm key to be used for passwords */
	public static final String ENC_ALGORITHM = "SHA";

	/** A flag to indicate if passwords should be encrypted */
	public static final String ENCRYPT_PASSWORD = "encryptPassword";

	/** 获取系统的文件分割符 */
	public static final String FILE_SEP = System.getProperty("file.separator");

	/** User home from System properties */
	public static final String USER_HOME = System.getProperty("user.home")+ FILE_SEP;

	/** The name of the configuration hashmap stored in application scope. */

	public static final String CONFIG = "appConfig";
	public static final String APP_NAME = "cqps";

	// 以下是Ext json中的一些参数设置
	public static final String OPERATE_MODE = "json";
	public static final String SAVEMORE_JSON = "jsonStr";
	public static final String CODE_KEY_VALUE = "codeKeyValue";
	public static final Integer MAX_COUNT = Integer.MAX_VALUE;
	public static final String EXT_SUCCESS_JSON_STR = "{'success':true}";
	public static final String EXT_FAILURE_JSON_STR = "{'success':false}";
	public static final String EXT_LIST_JSON_STR = "{'success':true,'totalCounts':0,'results':[]}";
	public static final String EXT_DATA_JSON_STR = "{'success':true,'data':{}}";
	public static final String EXT_JSON_SUCCESS_STR = "success";
	public static final String EXT_JSON_TOTALCOUNTS_STR = "totalCounts";
	public static final String EXT_JSON_RESULTS_STR = "results";
	public static final String EXT_JSON_DATA_STR = "data";
	public static final String USER_ADMIN = "admin";
		
	
	/**
	 * 保存手机发送的图片在客户端的主文件名称
	 */
	public static final String PHONE_SAVE_PHOTO_MIAN_DIR = "com_pengtu_road_check_data";
	
	
	
	/**
	 * Session scope attribute that holds the locale set by the user. By setting
	 * this key to the same one that Struts uses, we get synchronization in
	 * Struts w/o having to do extra work or have two session-level variables.
	 */
	public static final String PREFERRED_LOCALE_KEY = "org.apache.struts.action.LOCALE";

	public static final String ACTION = "1";
	public static final String UNACTION = "0";

	/** checkBox 选中 */
	public static final String CHECK_BOX_ON = "on";
	/** checkBox 未选中 */
	public static final String CHECK_BOX_UN = "un";

	public static final String MESSAGETYPE_URGENT = "1";
	public static final String MESSAGETYPE_COMMONLY = "0";


	/** 当前记录有效 */
	public static final String RECFLAG_IN = "0";
	/** 当前记录无效 */
	public static final String RECFLAG_UN = "1";

	/** 当前路线是新建工程 */
	public static final String RECFLAG_IN_PROJECT = "-1";

	/** 当前记录未删除 */
	public static final String DELFLAG_IN = "0";

	/** 当前记录删除 */
	public static final String DELFLAG_UN = "1";

	/** 当前记录永久删除 */
	public static final Integer DELFLAG_OUT = -1;

	/** 标记可用 */
	public static final Boolean USEFLAG_ON = true;

	/** 标记不可用 */
	public static final Boolean USEFLAG_OFF = false;

	/** 标记可用 */
	public static final String ON = "1";

	/** 标记不可用 */
	public static final String OFF = "0";



	

	
	
}
